﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="MediaDataSet" targetNamespace="http://tempuri.org/TestData.xsd" xmlns:mstns="http://tempuri.org/TestData.xsd" xmlns="http://tempuri.org/TestData.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections />
        <Tables />
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="MediaDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="MediaDataSet" msprop:Generator_DataSetName="MediaDataSet" msprop:EnableTableAdapterManager="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Titles" msprop:Generator_UserTableName="Titles" msprop:Generator_RowDeletedName="TitlesRowDeleted" msprop:Generator_RowChangedName="TitlesRowChanged" msprop:Generator_RowClassName="TitlesRow" msprop:Generator_RowChangingName="TitlesRowChanging" msprop:Generator_RowEvArgName="TitlesRowChangeEvent" msprop:Generator_RowEvHandlerName="TitlesRowChangeEventHandler" msprop:Generator_TableClassName="TitlesDataTable" msprop:Generator_TableVarName="tableTitles" msprop:Generator_RowDeletingName="TitlesRowDeleting" msprop:Generator_TablePropName="Titles">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Id" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="Id" msprop:Generator_ColumnPropNameInRow="Id" msprop:Generator_ColumnVarNameInTable="columnId" msprop:Generator_ColumnPropNameInTable="IdColumn" type="xs:int" />
              <xs:element name="Name" msprop:Generator_UserColumnName="Name" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInTable="NameColumn" type="xs:string" minOccurs="0" />
              <xs:element name="Type" msprop:Generator_UserColumnName="Type" msprop:Generator_ColumnPropNameInRow="Type" msprop:Generator_ColumnVarNameInTable="columnType" msprop:Generator_ColumnPropNameInTable="TypeColumn" type="xs:string" minOccurs="0" />
              <xs:element name="Description" msprop:Generator_UserColumnName="Description" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" type="xs:string" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Episodes" msprop:Generator_UserTableName="Episodes" msprop:Generator_RowDeletedName="EpisodesRowDeleted" msprop:Generator_RowChangedName="EpisodesRowChanged" msprop:Generator_RowClassName="EpisodesRow" msprop:Generator_RowChangingName="EpisodesRowChanging" msprop:Generator_RowEvArgName="EpisodesRowChangeEvent" msprop:Generator_RowEvHandlerName="EpisodesRowChangeEventHandler" msprop:Generator_TableClassName="EpisodesDataTable" msprop:Generator_TableVarName="tableEpisodes" msprop:Generator_RowDeletingName="EpisodesRowDeleting" msprop:Generator_TablePropName="Episodes">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Id" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="Id" msprop:Generator_ColumnPropNameInRow="Id" msprop:Generator_ColumnVarNameInTable="columnId" msprop:Generator_ColumnPropNameInTable="IdColumn" type="xs:int" />
              <xs:element name="Title" msprop:Generator_UserColumnName="Title" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInTable="TitleColumn" type="xs:int" minOccurs="0" />
              <xs:element name="Name" msprop:Generator_UserColumnName="Name" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInTable="NameColumn" type="xs:string" minOccurs="0" />
              <xs:element name="Season" msprop:Generator_UserColumnName="Season" msprop:Generator_ColumnPropNameInRow="Season" msprop:Generator_ColumnVarNameInTable="columnSeason" msprop:Generator_ColumnPropNameInTable="SeasonColumn" type="xs:int" minOccurs="0" />
              <xs:element name="Episode" msprop:Generator_UserColumnName="Episode" msprop:Generator_ColumnPropNameInRow="Episode" msprop:Generator_ColumnVarNameInTable="columnEpisode" msprop:Generator_ColumnPropNameInTable="EpisodeColumn" type="xs:int" minOccurs="0" />
              <xs:element name="Description" msprop:Generator_UserColumnName="Description" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" type="xs:string" minOccurs="0" />
              <xs:element name="Watched" msprop:Generator_UserColumnName="Watched" msprop:Generator_ColumnVarNameInTable="columnWatched" msprop:Generator_ColumnPropNameInRow="Watched" msprop:Generator_ColumnPropNameInTable="WatchedColumn" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="EpisodeFiles" msprop:Generator_UserTableName="EpisodeFiles" msprop:Generator_RowDeletedName="EpisodeFilesRowDeleted" msprop:Generator_RowChangedName="EpisodeFilesRowChanged" msprop:Generator_RowClassName="EpisodeFilesRow" msprop:Generator_RowChangingName="EpisodeFilesRowChanging" msprop:Generator_RowEvArgName="EpisodeFilesRowChangeEvent" msprop:Generator_RowEvHandlerName="EpisodeFilesRowChangeEventHandler" msprop:Generator_TableClassName="EpisodeFilesDataTable" msprop:Generator_TableVarName="tableEpisodeFiles" msprop:Generator_RowDeletingName="EpisodeFilesRowDeleting" msprop:Generator_TablePropName="EpisodeFiles">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Episode" msprop:Generator_UserColumnName="Episode" msprop:Generator_ColumnPropNameInRow="Episode" msprop:Generator_ColumnVarNameInTable="columnEpisode" msprop:Generator_ColumnPropNameInTable="EpisodeColumn" type="xs:int" />
              <xs:element name="Volume" msprop:Generator_UserColumnName="Volume" msprop:Generator_ColumnPropNameInRow="Volume" msprop:Generator_ColumnVarNameInTable="columnVolume" msprop:Generator_ColumnPropNameInTable="VolumeColumn" type="xs:string" />
              <xs:element name="Path" msprop:Generator_UserColumnName="Path" msprop:Generator_ColumnPropNameInRow="Path" msprop:Generator_ColumnVarNameInTable="columnPath" msprop:Generator_ColumnPropNameInTable="PathColumn" type="xs:string" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Files" msprop:Generator_UserTableName="Files" msprop:Generator_RowDeletedName="FilesRowDeleted" msprop:Generator_RowChangedName="FilesRowChanged" msprop:Generator_RowClassName="FilesRow" msprop:Generator_RowChangingName="FilesRowChanging" msprop:Generator_RowEvArgName="FilesRowChangeEvent" msprop:Generator_RowEvHandlerName="FilesRowChangeEventHandler" msprop:Generator_TableClassName="FilesDataTable" msprop:Generator_TableVarName="tableFiles" msprop:Generator_RowDeletingName="FilesRowDeleting" msprop:Generator_TablePropName="Files">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Volume" msprop:Generator_UserColumnName="Volume" msprop:Generator_ColumnPropNameInRow="Volume" msprop:Generator_ColumnVarNameInTable="columnVolume" msprop:Generator_ColumnPropNameInTable="VolumeColumn" type="xs:string" />
              <xs:element name="Path" msprop:Generator_UserColumnName="Path" msprop:Generator_ColumnPropNameInRow="Path" msprop:Generator_ColumnVarNameInTable="columnPath" msprop:Generator_ColumnPropNameInTable="PathColumn" type="xs:string" />
              <xs:element name="Title" msprop:Generator_UserColumnName="Title" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInTable="TitleColumn" type="xs:int" minOccurs="0" />
              <xs:element name="DateAdded" msprop:Generator_UserColumnName="DateAdded" msprop:Generator_ColumnPropNameInRow="DateAdded" msprop:Generator_ColumnVarNameInTable="columnDateAdded" msprop:Generator_ColumnPropNameInTable="DateAddedColumn" type="xs:long" minOccurs="0" />
              <xs:element name="LastModified" msprop:Generator_UserColumnName="LastModified" msprop:Generator_ColumnPropNameInRow="LastModified" msprop:Generator_ColumnVarNameInTable="columnLastModified" msprop:Generator_ColumnPropNameInTable="LastModifiedColumn" type="xs:long" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Tags" msprop:Generator_UserTableName="Tags" msprop:Generator_RowDeletedName="TagsRowDeleted" msprop:Generator_RowChangedName="TagsRowChanged" msprop:Generator_RowClassName="TagsRow" msprop:Generator_RowChangingName="TagsRowChanging" msprop:Generator_RowEvArgName="TagsRowChangeEvent" msprop:Generator_RowEvHandlerName="TagsRowChangeEventHandler" msprop:Generator_TableClassName="TagsDataTable" msprop:Generator_TableVarName="tableTags" msprop:Generator_RowDeletingName="TagsRowDeleting" msprop:Generator_TablePropName="Tags">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Title" msprop:Generator_UserColumnName="Title" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInTable="TitleColumn" type="xs:int" />
              <xs:element name="Tag" msprop:Generator_UserColumnName="Tag" msprop:Generator_ColumnPropNameInRow="Tag" msprop:Generator_ColumnVarNameInTable="columnTag" msprop:Generator_ColumnPropNameInTable="TagColumn" type="xs:string" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="FileTags" msprop:Generator_UserTableName="FileTags" msprop:Generator_RowDeletedName="FileTagsRowDeleted" msprop:Generator_RowChangedName="FileTagsRowChanged" msprop:Generator_RowClassName="FileTagsRow" msprop:Generator_RowChangingName="FileTagsRowChanging" msprop:Generator_RowEvArgName="FileTagsRowChangeEvent" msprop:Generator_RowEvHandlerName="FileTagsRowChangeEventHandler" msprop:Generator_TableClassName="FileTagsDataTable" msprop:Generator_TableVarName="tableFileTags" msprop:Generator_RowDeletingName="FileTagsRowDeleting" msprop:Generator_TablePropName="FileTags">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Volume" msdata:Caption="Title" msprop:Generator_UserColumnName="Volume" msprop:Generator_ColumnPropNameInRow="Volume" msprop:Generator_ColumnVarNameInTable="columnVolume" msprop:Generator_ColumnPropNameInTable="VolumeColumn" type="xs:string" />
              <xs:element name="Path" msdata:Caption="Tag" msprop:Generator_UserColumnName="Path" msprop:Generator_ColumnPropNameInRow="Path" msprop:Generator_ColumnVarNameInTable="columnPath" msprop:Generator_ColumnPropNameInTable="PathColumn" type="xs:string" />
              <xs:element name="Tag" msprop:Generator_UserColumnName="Tag" msprop:Generator_ColumnPropNameInRow="Tag" msprop:Generator_ColumnVarNameInTable="columnTag" msprop:Generator_ColumnPropNameInTable="TagColumn" type="xs:string" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Titles" />
      <xs:field xpath="mstns:Id" />
    </xs:unique>
    <xs:unique name="Episodes_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Episodes" />
      <xs:field xpath="mstns:Id" />
    </xs:unique>
    <xs:unique name="EpisodeFiles_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:EpisodeFiles" />
      <xs:field xpath="mstns:Episode" />
      <xs:field xpath="mstns:Path" />
      <xs:field xpath="mstns:Volume" />
    </xs:unique>
    <xs:unique name="Files_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Files" />
      <xs:field xpath="mstns:Volume" />
      <xs:field xpath="mstns:Path" />
    </xs:unique>
    <xs:unique name="Tags_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Tags" />
      <xs:field xpath="mstns:Title" />
      <xs:field xpath="mstns:Tag" />
    </xs:unique>
    <xs:unique name="FileTags_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:FileTags" />
      <xs:field xpath="mstns:Volume" />
      <xs:field xpath="mstns:Tag" />
      <xs:field xpath="mstns:Path" />
    </xs:unique>
    <xs:keyref name="FK_Files_FileTags" refer="Files_Constraint1" msprop:rel_Generator_UserRelationName="FileTags" msprop:rel_Generator_RelationVarName="relationFileTags" msprop:rel_Generator_UserChildTable="FileTags" msprop:rel_Generator_UserParentTable="Files" msprop:rel_Generator_ParentPropName="FilesRowParent" msprop:rel_Generator_ChildPropName="GetFileTagsRows" msdata:RelationName="FileTags">
      <xs:selector xpath=".//mstns:FileTags" />
      <xs:field xpath="mstns:Volume" />
      <xs:field xpath="mstns:Path" />
    </xs:keyref>
    <xs:keyref name="FK_Titles_Tags" refer="Constraint1" msprop:rel_Generator_UserRelationName="TitleTags" msprop:rel_Generator_RelationVarName="relationTitleTags" msprop:rel_Generator_UserChildTable="Tags" msprop:rel_Generator_UserParentTable="Titles" msprop:rel_Generator_ParentPropName="TitlesRow" msprop:rel_Generator_ChildPropName="GetTagsRows" msdata:RelationName="TitleTags">
      <xs:selector xpath=".//mstns:Tags" />
      <xs:field xpath="mstns:Title" />
    </xs:keyref>
    <xs:keyref name="FK_Titles_Files" refer="Constraint1" msprop:rel_Generator_UserRelationName="TitleFiles" msprop:rel_Generator_RelationVarName="relationTitleFiles" msprop:rel_Generator_UserChildTable="Files" msprop:rel_Generator_UserParentTable="Titles" msprop:rel_Generator_ParentPropName="TitlesRow" msprop:rel_Generator_ChildPropName="GetFilesRows" msdata:RelationName="TitleFiles">
      <xs:selector xpath=".//mstns:Files" />
      <xs:field xpath="mstns:Title" />
    </xs:keyref>
    <xs:keyref name="FK_Files_EpisodeFiles" refer="Files_Constraint1" msprop:rel_Generator_UserRelationName="FileEpisodes" msprop:rel_Generator_RelationVarName="relationFileEpisodes" msprop:rel_Generator_UserChildTable="EpisodeFiles" msprop:rel_Generator_UserParentTable="Files" msprop:rel_Generator_ParentPropName="FilesRowParent" msprop:rel_Generator_ChildPropName="GetEpisodeFilesRows" msdata:RelationName="FileEpisodes">
      <xs:selector xpath=".//mstns:EpisodeFiles" />
      <xs:field xpath="mstns:Volume" />
      <xs:field xpath="mstns:Path" />
    </xs:keyref>
    <xs:keyref name="EpisodeFiles" refer="Episodes_Constraint1" msprop:rel_Generator_UserRelationName="EpisodeFiles" msprop:rel_Generator_RelationVarName="relationEpisodeFiles" msprop:rel_Generator_UserChildTable="EpisodeFiles" msprop:rel_Generator_UserParentTable="Episodes" msprop:rel_Generator_ParentPropName="EpisodesRow" msprop:rel_Generator_ChildPropName="GetEpisodeFilesRows">
      <xs:selector xpath=".//mstns:EpisodeFiles" />
      <xs:field xpath="mstns:Episode" />
    </xs:keyref>
    <xs:keyref name="FK_Titles_Episodes" refer="Constraint1" msprop:rel_Generator_UserRelationName="TitleEpisodes" msprop:rel_Generator_RelationVarName="relationTitleEpisodes" msprop:rel_Generator_UserChildTable="Episodes" msprop:rel_Generator_UserParentTable="Titles" msprop:rel_Generator_ParentPropName="TitlesRow" msprop:rel_Generator_ChildPropName="GetEpisodesRows" msdata:RelationName="TitleEpisodes">
      <xs:selector xpath=".//mstns:Episodes" />
      <xs:field xpath="mstns:Title" />
    </xs:keyref>
  </xs:element>
</xs:schema>